package com.dq.security.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.dq.security.entity.User;
import com.dq.security.service.UserService;
import com.dq.security.mapper.UserMapper;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * (User)表服务实现类
 *
 * @author makejava
 * @since 2023-05-25 19:19:21
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User login(User user) {
        return null;
    }

    @Override
    public User queryUserByUsername(String username) {
        return userMapper.selectOne(new LambdaQueryWrapper<User>().eq(User::getName,username));
    }

    @Override
    public String getUserAuthorities(Long id) {
        return null;
    }
}

